package beanstao.util.type.base;

import java.text.ParseException;

import beanstao.util.Util;


public class String2Datetime extends DateTimeCastor<String, java.util.Date>
{

	@Override
	public java.util.Date cast(String src, Class<?> toType, String... args)
	{
		try
		{
			return dateTimeFormat.parse(src);
		}
		catch (ParseException e)
		{
			throw Util.wrapThrow(e);
		}
	}

}
